﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hrm.Core
{
    public class Permission : Entity
    {
        [MaxLength(50)]
        [Display(Name = "权限编码")]
        public string Code { get; set; }

        [MaxLength(50)]
        [Display(Name = "权限名称")]
        public string Name { get; set; }

        [JsonIgnore]
        public virtual ICollection<ResourceAndPermission> ResourceAndPermissions { get; set; }
    }
}
